<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="author" content="Laurence-042">
    
    
    
    
    
    
    <title>关于在Vultr上折腾MySQL的那些事 | Laurence</title>
    <link href=”https://laurence-042.github.io“ rel=”prefetch” />

    <link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/aos.css">
<link rel="stylesheet" href="/css/style.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script src="/js/aos.js"></script>
    <script src="/js/highslide/highslide-full.min.js"></script>
    <link rel="stylesheet" href="/js/highslide/highslide.css">
    <style type="text/css">
        @media (max-width: 768px) {
            body {
                background-color: #f0f0f0;
                background: url('/imgs/xsbg.jpg');
                background-attachment: fixed;
            }
        }
    </style>
    
    <!--<script type="text/javascript">
      if (document.images) {
        var avatar = new Image();
        avatar.src = '/imgs/dr.png'
        var previews = 'http://bing.ioliu.cn/v1/rand'.split(',')
        var previewsPreLoad = []
        for(var i = 0; i < length; i++) {
          previewsPreLoad.push(new Image())
          previewsPreLoad[previewsPreLoad.length - 1].src = '/imgs/preview' + previews[i]
        }
      }
    </script>-->

    <!--highlight.js-->
    <link rel="stylesheet" href="//cdn.bootcss.com/highlight.js/9.2.0/styles/github.min.css">
    <script src="//cdn.bootcss.com/highlight.js/9.2.0/highlight.min.js"></script>
</head>
<body>
    <!-- 背景轮播图功能 -->
    <section class="hidden-xs">
    <ul class="cb-slideshow">
        <li><span>天若</span></li>
        <li><span>有情</span></li>
        <li><span>天亦老</span></li>
        <li><span>我为</span></li>
        <li><span>长者</span></li>
        <li><span>续一秒</span></li>
    </ul>
</section>
    <!-- 欧尼酱功能, 谁用谁知道 -->
    
    <header class="navbar navbar-inverse" id="gal-header">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed"
                    data-toggle="collapse" data-target=".bs-navbar-collapse"
                    aria-expanded="false">
                <span class="fa fa-lg fa-reorder"></span>
            </button>
            <a href="https://laurence-042.github.io">
                
                <style>
                    #gal-header .navbar-brand {
                        height: 54px;
                        line-height: 24px;
                        font-size: 28px;
                        opacity: 1;
                        background-color: rgba(0,0,0,0);
                        text-shadow: 0 0 5px #fff,0 0 10px #fff,0 0 15px #fff,0 0 20px #228DFF,0 0 35px #228DFF,0 0 40px #228DFF,0 0 50px #228DFF,0 0 75px #228DFF;
                    }
                </style>
                <!-- 这里使用文字(navbar_text or config.title) -->
                <div class="navbar-brand">Laurence</div>
                
            </a>
        </div>
        <div class="collapse navbar-collapse bs-navbar-collapse">
            <ul class="nav navbar-nav" id="menu-gal">
                
                
                <li class="">
                    <a href="/">
                        <i class="fa fa-home"></i>首页
                    </a>
                </li>
                
                
                
                <li class="">
                    <a href="/archives">
                        <i class="fa fa-archive"></i>归档
                    </a>
                </li>
                
                
                
                
                <li class="">
                    <a href="/categories">
                        <i class="fa fa-list"></i>分类
                    </a>
                </li>
                
                
                
                
                
                <li class="dropdown">
                    <!-- TODO 添加hover dropdown效果 -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false" data-hover="dropdown">
                        <i class="fa fa-tags"></i>标签
                    </a>
                    <ul class="dropdown-menu">
                        
                        
                        <li>
                            <a href="/tags/Java/">Java</a>
                        </li>
                        
                        <li>
                            <a href="/tags/笔记/">笔记</a>
                        </li>
                        
                        <li>
                            <a href="/tags/日常/">日常</a>
                        </li>
                        
                        <li>
                            <a href="/tags/纯记忆的学习笔记/">纯记忆的学习笔记</a>
                        </li>
                        
                        <li>
                            <a href="/tags/Python/">Python</a>
                        </li>
                        
                        <li>
                            <a href="/tags/不定期更新/">不定期更新</a>
                        </li>
                        
                        
                        <li>
                            <a href="/tags">...</a>
                        </li>
                        
                        
                    </ul>
                </li>
                
                
                
                
                <li class="">
                    <a href="/about">
                        <i class="fa fa-user"></i>关于我
                    </a>
                </li>
                
                
            </ul>
        </div>
    </div>
</header>
    <div id="gal-body">
        <div class="container">
            <div class="row">
                <div class="col-md-8 gal-right" id="mainstay">
                    
<article class="article well article-body" id="article">
    <div class="breadcrumb">
        <i class="fa fa-home"></i>
        <a href="https://laurence-042.github.io">Laurence</a>
        >
        <span>关于在Vultr上折腾MySQL的那些事</span>
    </div>
    <!-- 大型设备详细文章 -->
    <div class="hidden-xs">
        <div class="title-article">
            <h1>
                <a href="/2018/07/19/关于在Vultr上折腾MySQL的那些事/">关于在Vultr上折腾MySQL的那些事</a>
            </h1>
        </div>
        <div class="tag-article">
            
            <span class="label label-gal">
                <i class="fa fa-tags"></i>
                
                <a href="/tags/报错解决方案/">报错解决方案</a>, 
                
                <a href="/tags/MySQL/">MySQL</a>, 
                
                <a href="/tags/服务器/">服务器</a>
                
            </span>
            
            <span class="label label-gal">
                <i class="fa fa-calendar"></i> 2018-07-19
            </span>
            
        </div>
    </div>
    <!-- 小型设备详细文章 -->
    <div class="visible-xs">
        <center>
            <div class="title-article">
                <h4>
                    <a href="/2018/07/19/关于在Vultr上折腾MySQL的那些事/">关于在Vultr上折腾MySQL的那些事</a>
                </h4>
            </div>
            <p>
                <i class="fa fa-calendar"></i> 2018-07-19
            </p>
            <p>
                
                <i class="fa fa-tags"></i>
                
                <a href="/tags/报错解决方案/">报错解决方案</a>, 
                
                <a href="/tags/MySQL/">MySQL</a>, 
                
                <a href="/tags/服务器/">服务器</a>
                
                
                
            </p>
        </center>
    </div>
    <div class="content-article">
        <p>我租的是Vultr的Centos7服务器，按操作流程来安装一般不会有什么大问题······嗯，一般······</p>
<a id="more"></a>
<hr>
<h2 id="第一步当然是安装MySQL"><a href="#第一步当然是安装MySQL" class="headerlink" title="第一步当然是安装MySQL"></a>第一步当然是安装MySQL</h2><p>下载源安装包</p>
<pre><code class="shell">wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
</code></pre>
<p>安装 Mysql 源</p>
<pre><code class="shell">yum localinstall mysql57-community-release-el7-8.noarch.rpm
</code></pre>
<p>检测是否安装成功</p>
<pre><code class="shell">yum repolist enabled | grep &quot;mysql.*-community.*&quot;
</code></pre>
<blockquote>
<p>可能需要修改 默认安装的 Mysql 版本，不需要的话可跳过:</p>
<pre><code class="shell">vim /etc/yum.repos.d/mysql-community.repo
</code></pre>
<p>将5.7源的<code>enabled=0</code>改为<code>endaled=1</code></p>
</blockquote>
<p>安装 Mysql</p>
<pre><code class="shell">yum install mysql-community-server
</code></pre>
<p>启动 Mysql 服务</p>
<pre><code class="shell">systemctl start mysqld
</code></pre>
<p>查看启动是否成功</p>
<pre><code class="shell">ps -ef | grep mysqld | grep -v grep
</code></pre>
<p>查看状态</p>
<pre><code class="shell">systemctl status mysql
</code></pre>
<p>显示那一大串里有<code>Active:active(running)</code>就没问题了</p>
<p>设置开机启动</p>
<pre><code class="shell">systemctl enable mysqld
systemctl daemon-reload
</code></pre>
<p>mysql 安装完成后，在<code>/var/log/mysql.log</code>文件中给 root 生成了一个默认密码  </p>
<pre><code class="shell">grep &#39;temporary password&#39; /var/log/mysqld.log
</code></pre>
<p><code>root@localhost:</code>后面就是默认初始密码<br><em>当然你也可以直接<code>cat /var/log/mysql.log</code>然后从输出的全部文件内容里面找</em></p>
<p>然后用密码登陆MySQL</p>
<pre><code class="shell">mysql -u root -p
</code></pre>
<p>理论上会显示<code>password:</code>之类的，这时候输入初始默认密码即可登陆<br><em>Linux输密码时是没有`</em>`之类的回显的，虽然大部分用过Linux的都知道这个事，不知道的还是先习惯下Linux操作再在Linux上折腾MySQL吧······*</p>
<p>登陆成功后左边的<code>[root@vultr ~]#</code>之类的就会变成<code>mysql&gt;</code>了</p>
<p>然后修改root的密码（毕竟默认密码不好记，如果你能记得住这步当然用不着了）<br>设置密码的格式是</p>
<pre><code class="shell">set password for 用户名@localhost = password(&#39;新密码&#39;);
</code></pre>
<p><em>别忘了最后的<code>;</code></em></p>
<blockquote>
<p>举个例子，假如现在你想把root的密码改成1024，就输入下面的指令（但实际上现在是无法把1024设为密码的，因为密码强度太低）</p>
<pre><code>set password for root@localhost = password(&#39;1024&#39;);
</code></pre></blockquote>
<p>不推荐设置为简单密码甚至无密码，故不在此介绍方法，一定要的话自己问Baidu或Google要相应教程</p>
<p>顺便说一下，日志是<code>/var/log/mysqld.log</code><br>出了问题先看日志，能解决最好，解决不了去StackOverflow问的时候记得附上相应的日志</p>
<hr>
<h2 id="以下为题外话"><a href="#以下为题外话" class="headerlink" title="以下为题外话"></a>以下为题外话</h2><blockquote>
<p>题外话的内容为这个鶸安装时出的问题，一般问题可通过Google解决，解决不了的话······就只能和这个鶸一样卸载重装了······</p>
</blockquote>
<h4 id="当日（23：00）："><a href="#当日（23：00）：" class="headerlink" title="当日（23：00）："></a>当日（23：00）：</h4><p>说实话，一开始吧，我学计算机专业是抱着“一年能做应用程序，两年能搞个服务器，三年能黑个服务器”的期待进的校门，然而现实给了我重重一击————这头一年全在学基础数学物理，专业课只有一个C语言，直到半个月前才得以上第一门限选课程“Java程序设计”并在各种纠结中用Swing弄了个学生成绩管理系统······<br>但我还是想弄下服务器，于是在一个晚上的折腾下（或者说是被折腾下），遇见了一堆问题，于是决定把这些写下来以造福和我一样苦逼的新人（手动滑稽）  </p>
<h4 id="第二天（00：00）："><a href="#第二天（00：00）：" class="headerlink" title="第二天（00：00）："></a>第二天（00：00）：</h4><p>虽说如此······ 我还没能成功启动着玩意<br>给的错误信息是</p>
<pre><code>mysqld: Error on realpath() on &#39;/var/lib/mysql-files&#39; (Error 13 - Permission denied)
</code></pre><p>然而······  </p>
<pre><code>drwxrwxrwx 2 mysql mysql 4096 Apr  8 07:23 /var/lib/mysql-files  
</code></pre><p>完全不知道问题出在哪里，错误日志还不知为何半小时前就罢工了······   </p>
<h4 id="临睡前（02：00）"><a href="#临睡前（02：00）" class="headerlink" title="临睡前（02：00）"></a>临睡前（02：00）</h4><p>三小时前出的问题，照着网上教程折腾一小时无果，果断直接照着官网全英文的安装指导来安装，结果······依旧出错，一直折腾到现在，搞得我现在闭着眼睛都能重设文件权限和所有者了（望天）</p>
<p>·································过了很久很久·································</p>
<h4 id="新进展（这个鶸放假回家前终于想起来这件事了）"><a href="#新进展（这个鶸放假回家前终于想起来这件事了）" class="headerlink" title="新进展（这个鶸放假回家前终于想起来这件事了）"></a>新进展（这个鶸放假回家前终于想起来这件事了）</h4><p>他想起来当时第一次安装完之后发现安装错了版本，所以曾经卸载过一次MySQL，有可能是当时没卸载干净引发的错误<br><strong>卸载重装大法好！！！</strong><br>没错，这个鶸终于再次使用这一招了，于是他开始仔细卸载MySQL  </p>
<p>先卸载掉MySQL的组件</p>
<pre><code>rpm -qa | grep -i mysql
</code></pre><p>这样就能获取到已安装的组件了，然后就是卸载的时间了！<br><em>注意：一般卸载前需要先关闭相应程序，但我的MySQL根本没有成功启动过，所以才直接卸载</em></p>
<p>示例：</p>
<pre><code class="shell">rpm -ev MySQL-devel-5.6.23-1.linux_glibc2.5
rpm -ev MySQL-server-5.6.23-1.linux_glibc2.5
rpm -ev MySQL-client-5.6.23-1.linux_glibc2.5
</code></pre>
<blockquote>
<p>这一步可能出现“这个组件是[某个组件]的依赖”之类的报错，这时候先卸载那个[某个组件]再来删现在要卸载的组件</p>
</blockquote>
<p>但不要以为现在就万事大吉了！<strong>还有残留文件！</strong>  </p>
<p><em>当时这个鶸第一次从装时貌似就是因为没删干净残留文件，再次出错了</em>  </p>
<pre><code class="shell">find / -name mysql
</code></pre>
<p>找到残留的文件夹后，全部<code>rm -rf</code>！<br><em>注意不要<code>rm -rf \</code>（笑）</em></p>
<p>示例：</p>
<pre><code class="shell">rm -rf /var/lib/mysql
rm -rf /var/lib/mysql/mysql
rm -rf /usr/lib64/mysql
</code></pre>
<p>注意：卸载后<code>/etc/my.cnf</code>不会删除，需要进行手工删除</p>
<pre><code class="shell">rm -rf /etc/my.cnf
</code></pre>
<p>最后检查下确认卸载干净后再次进行安装，问题得以解决</p>
<hr>
<!--more-->
    </div>
</article>


<div id="comments-template"></div>
<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
<script>
	if(!window.commentConfig) {
      window.commentConfig = {}
      window.commentConfig.title = '关于在Vultr上折腾MySQL的那些事'
    }
</script>

                </div>
                <aside class="col-md-4 gal-left" id="sidebar">
    <!-- 此为sidebar的搜索框, 非搜索结果页面 -->
<aside id="sidebar-search">
    <div class="search hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <form class="form-inline clearfix" id="search-form" method="get"
              action="/search/index.html">
            <input type="text" name="s" class="form-control" id="searchInput" placeholder="搜索文章~">
            <button class="btn btn-danger btn-gal" type="submit">
                <i class="fa fa-search"></i>
            </button>
        </form>
    </div>
</aside>
    <aside id="sidebar-author">
    <div class="panel panel-gal" data-aos="flip-right" data-aos-duration="3000">
        <div class="panel-heading" style="text-align: center">
            <i class="fa fa-quote-left"></i>
            Laurence-042
            <i class="fa fa-quote-right"></i>
        </div>
        <div class="author-panel text-center">
            <img src="/imgs/dr.png" width="140" height="140"
                 alt="个人头像" class="author-image">
            <p class="author-description"></p>
        </div>
    </div>
</aside>
    
    <aside id="sidebar-recent_comments">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-comments"></i>
            最新评论
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush"></ul>
    </div>
</aside>
    
    <!-- 要配置好leancloud才能开启此小工具 -->
    
    
    <aside id="sidebar-recent_posts">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-refresh"></i>
            近期文章
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush">
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/10/08/一个鶸的自我修养/">一个鶸的自我修养</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/10/08/hello-world/">Hello World</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/08/08/给真·小白的关于初用远程Linux系统的简单入门/">给真·小白的关于初用远程Linux系统的简单入门</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/08/02/令新人各种懵逼的各种概念/">令新人各种懵逼的各种概念</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/31/Python-MySQL数据查询/">Python-MySQL数据查询</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/28/Python笔记-这个鶸仍未搞明白的东西/">Python笔记-这个鶸仍未搞明白的东西</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/26/Python笔记-特殊变量/">Python笔记-特殊变量</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/25/Fullmetal Alchemist!!!/">Fullmetal Alchemist!!!</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/23/Python笔记-陌生的lambda/">Python笔记-陌生的lambda</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/22/DFS-BFS学习笔记/">DFS,BFS学习笔记</a>
                </span>
            </li>
            
        </ul>
    </div>
</aside>
    
    
    <aside id="sidebar-rand_posts">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-refresh"></i>
            随机文章
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush">
            
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/18/JavaGUI-Swing学习笔记/">JavaGUI_Swing学习笔记</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/31/Python-MySQL数据查询/">Python-MySQL数据查询</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/26/Python笔记-特殊变量/">Python笔记-特殊变量</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/23/Python笔记-陌生的lambda/">Python笔记-陌生的lambda</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/10/08/hello-world/">Hello World</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/08/02/令新人各种懵逼的各种概念/">令新人各种懵逼的各种概念</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/09/关于Java实现的某些算法的记录/">关于Java实现的某些算法的记录</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/06/30/文字处理工具（不定期更新）/">文字处理工具（不定期更新）</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/09/用bat文件简化hexo操作/">用bat文件简化hexo操作</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/08/08/给真·小白的关于初用远程Linux系统的简单入门/">给真·小白的关于初用远程Linux系统的简单入门</a>
                </span>
            </li>
            
        </ul>
    </div>
</aside>
    
    
    <aside id="gal-sets">
        <div class="panel panel-gal hidden-xs" data-aos="fade-up" data-aos-duration="2000">
            <ul class="nav nav-pills pills-gal">
                <li class="">
                    <a href="/2018/07/19/关于在Vultr上折腾MySQL的那些事/index.html#sidebar-tags" data-toggle="tab" id="tags-tab">热门标签</a>
                </li>
                <li class="">
                    <a href="/2018/07/19/关于在Vultr上折腾MySQL的那些事/index.html#sidebar-friend-links" data-toggle="tab" id="friend-links-tab">友情链接</a>
                </li>
                <li class="">
                    <a href="/2018/07/19/关于在Vultr上折腾MySQL的那些事/index.html#sidebar-links" data-toggle="tab" id="links-tab">个人链接</a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="cloud-tags tab-pane nav bs-sidenav fade" id="sidebar-tags">
    
    <a href="/tags/Java/" style="font-size: 8.087815587558453px;" class="tag-cloud-link">Java</a>
    
    <a href="/tags/笔记/" style="font-size: 13.632223605087344px;" class="tag-cloud-link">笔记</a>
    
    <a href="/tags/日常/" style="font-size: 17.537109442710044px;" class="tag-cloud-link">日常</a>
    
    <a href="/tags/纯记忆的学习笔记/" style="font-size: 13.56692033017184px;" class="tag-cloud-link">纯记忆的学习笔记</a>
    
    <a href="/tags/Python/" style="font-size: 10.991393456044225px;" class="tag-cloud-link">Python</a>
    
    <a href="/tags/不定期更新/" style="font-size: 13.423311968518949px;" class="tag-cloud-link">不定期更新</a>
    
    <a href="/tags/hey/" style="font-size: 16.715732264112443px;" class="tag-cloud-link">hey!</a>
    
    <a href="/tags/报错解决方案/" style="font-size: 9.979516886050371px;" class="tag-cloud-link">报错解决方案</a>
    
    <a href="/tags/MySQL/" style="font-size: 11.601571483434329px;" class="tag-cloud-link">MySQL</a>
    
    <a href="/tags/服务器/" style="font-size: 14.941490506393315px;" class="tag-cloud-link">服务器</a>
    
    <a href="/tags/工具/" style="font-size: 12.28731882160837px;" class="tag-cloud-link">工具</a>
    
    <a href="/tags/hexo/" style="font-size: 15.911085936182939px;" class="tag-cloud-link">hexo</a>
    
    <a href="/tags/bat/" style="font-size: 13.145404079884107px;" class="tag-cloud-link">bat</a>
    
    <a href="/tags/偷懒/" style="font-size: 17.420418750766615px;" class="tag-cloud-link">偷懒</a>
    
    <a href="/tags/真·小白/" style="font-size: 17.365578023747737px;" class="tag-cloud-link">真·小白</a>
    
    <a href="/tags/Linux/" style="font-size: 16.369806553058474px;" class="tag-cloud-link">Linux</a>
    
</div>
                <div class="friend-links tab-pane nav bs-sidenav fade" id="sidebar-friend-links">
    
    <li>
        <a href="http://kdays.net/days/" target="_blank">KDays Forum</a>
    </li>
    
    <li>
        <a href="http://www.gal123.com/" target="_blank">绅士导航♂</a>
    </li>
    
    <li>
        <a href="http://www.moe123.com/" target="_blank">萌导航</a>
    </li>
    
    <li>
        <a href="https://google.jiongjun.cc/" target="_blank">Google镜像站</a>
    </li>
    
</div>
                <div class="links tab-pane nav bs-sidenav fade" id="sidebar-links">
    
    <li>
        <a href="https://github.com/Laurence-042" target="_blank">Github</a>
    </li>
    
    <li>
        <a href="http://localhost:4000/" target="_blank">null,没有更多的了</a>
    </li>
    
</div>
            </div>
        </div>
    </aside>
    
</aside>
            </div>
        </div>
    </div>
    <footer id="gal-footer">
    <div class="container">
        Copyright © 2018 Laurence-042 Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>.&nbsp;Theme by <a href="https://github.com/ZEROKISEKI" target="_blank">AONOSORA</a>
    </div>
</footer>

<!-- 回到顶端 -->
<div id="gal-gotop">
    <i class="fa fa-angle-up"></i>
</div>
</body>
<script src="/js/activate-power-mode.js"></script>
<script>

    // 配置highslide
	hs.graphicsDir = '/js/highslide/graphics/'
    hs.outlineType = "rounded-white";
    hs.dimmingOpacity = 0.8;
    hs.outlineWhileAnimating = true;
    hs.showCredits = false;
    hs.captionEval = "this.thumb.alt";
    hs.numberPosition = "caption";
    hs.align = "center";
    hs.transitions = ["expand", "crossfade"];
    hs.lang.number = '共%2张图, 当前是第%1张';
    hs.addSlideshow({
      interval: 5000,
      repeat: true,
      useControls: true,
      fixedControls: "fit",
      overlayOptions: {
        opacity: 0.75,
        position: "bottom center",
        hideOnMouseOut: true
      }
    })

    // 初始化aos
    AOS.init({
      duration: 1000,
      delay: 0,
      easing: 'ease-out-back'
    });

</script>
<script>
	POWERMODE.colorful = 'true';    // make power mode colorful
	POWERMODE.shake = 'true';       // turn off shake
	// TODO 这里根据具体情况修改
	document.body.addEventListener('input', POWERMODE);
</script>
<script>
    window.slideConfig = {
      prefix: '/imgs/slide/background',
      ext: 'jpg',
      maxCount: '6'
    }
</script>
<script src="/js/hs.js"></script>
<script src="/js/blog.js"></script>



<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
<script>
    if(window.commentConfig) {
      window.commentConfig.id = 'Thu Jul 19 2018 22:47:46 GMT+0000'
      window.commentConfig.owner = 'Laurence-042'
      window.commentConfig.repo = 'blog-comment'
      window.commentConfig.client_id = '41ecdf7be074fb66a1a2'
      window.commentConfig.client_secret = '2382f17284dc9ba9754020431735338ce8d80ec0'
      window.commentConfig.redirect_uri = ''
    } else {
      window.commentConfig = {
      	id: 'Thu Jul 19 2018 22:47:46 GMT+0000',
        owner: 'Laurence-042',
        repo: 'blog-comment',
        client_id: '41ecdf7be074fb66a1a2',
        client_secret: '2382f17284dc9ba9754020431735338ce8d80ec0',
        redirect_uri: ''
      }
    }
</script>

<!--highlight.js-->
<script>
    hljs.initHighlightingOnLoad();
</script>
<script src="/js/comment/gitment.js"></script>

</html>